/* 组件样式 */

/* Header */
.header-nav.active {
  @apply bg-transparent hover:bg-[rgba(255,255,255,0.7)] dark:hover:bg-[rgba(38,38,38,0.7)];
}

.header-nav .nav-item:hover .icon-1 {
  -webkit-animation: shake-lr 0.7s cubic-bezier(0.455, 0.03, 0.515, 0.955) both;
  animation: shake-lr 0.7s cubic-bezier(0.455, 0.03, 0.515, 0.955) both;
}
.header-nav .nav-item:hover .icon-2 {
  -webkit-animation: shake-horizontal 0.8s cubic-bezier(0.455, 0.03, 0.515, 0.955) both;
  animation: shake-horizontal 0.8s cubic-bezier(0.455, 0.03, 0.515, 0.955) both;
}
.header-nav .nav-item:hover .icon-3 {
  -webkit-animation: shake-vertical 0.8s cubic-bezier(0.455, 0.03, 0.515, 0.955) both;
  animation: shake-vertical 0.8s cubic-bezier(0.455, 0.03, 0.515, 0.955) both;
}
.header-nav .nav-item:hover .icon-4 {
  -webkit-animatio: swing 0.6s;
  animation: swing 0.6s;
}
.header-nav .nav-item:hover .icon-5 {
  @apply animate-spin-slow;
}
.header-nav .nav-item:hover .icon-6 {
  -webkit-animation: vibrate-1 0.3s linear infinite both;
  animation: vibrate-1 0.3s linear infinite both;
}

/* BackTop */
.back-top {
  width: 70px;
  height: 900px;
  position: fixed;
  right: 25px;
  top: -910px;
  z-index: 40;
  background: url(../img/scroll.png) no-repeat center;
  background-size: contain;
  animation: bounce-slow 3s linear infinite;
  -webkit-animation: bounce-slow 3s linear infinite;
}

/* MbHeader */
.mb-deader-menu::-webkit-scrollbar {
  display: none;
}
.mb-deader-menu .mb-menu .router-link-active {
  @apply rounded-xl bg-cyan-500 text-white shadow-lg shadow-cyan-500/50 dark:bg-indigo-500 dark:shadow-indigo-500/50;
}

/* Waves */
.waves {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 12vh;
  min-height: 3.125rem;
  max-height: 9.375rem;
  z-index: 1;
}
.waves .parallax .use {
  animation: move-forever 25s cubic-bezier(0.55, 0.5, 0.45, 0.5) infinite;
}
.waves .parallax .use:nth-child(1) {
  animation-delay: -2s;
  animation-duration: 7s;
}
.waves .parallax .use:nth-child(2) {
  animation-delay: -3s;
  animation-duration: 10s;
}
.waves .parallax .use:nth-child(3) {
  animation-delay: -4s;
  animation-duration: 13s;
}
.waves .parallax .use:nth-child(4) {
  animation-delay: -5s;
  animation-duration: 20s;
}
@media (max-width: 768px) {
  .waves {
    height: 10vh;
    min-height: 10vh;
  }
}

/* comment input */
/* .comment_textarea textarea {
  background: url(../img/comment.png) no-repeat bottom right;
  background-size: 35%;
} */

/* home background */
#headertop .headertop-bg {
  background-image: url(https://www.loliapi.com/acg);
}
#headertop:before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background-attachment: fixed;
  z-index: 9;
}
#headertop.pattern-center {
  animation: header 1s;
}
#headertop.filter-undertint:before {
  background-color: rgba(255, 255, 255, 0.3);
}
#headertop.filter-dim:before {
  background-color: rgba(0, 0, 0, 0.3);
}
#headertop.filter-grid:before {
  background-image: url(../img/grid.webp);
}
#headertop.filter-dot:before {
  background-image: url(../img/dot.webp);
}
#headertop .centerbg-info {
  position: relative;
}
#headertop .centerbg-info::before {
  content: '';
  position: absolute;
  top: -30px;
  left: 20%;
  margin-left: -15px;
  border-width: 15px;
  border-style: solid;
  border-color: transparent transparent rgba(0, 0, 0, 0.5) transparent;
}

/* post toc */
.toc-nav ul li.active {
  @apply text-orange-500 dark:text-[#007fff];
}

/* home  postItem */
.post__list.active {
  @apply flex-row-reverse;
}
.post__list.active .post__list__content {
  @apply text-left;
}
.post__list.active .post__list__content .content-top {
  @apply flex-row-reverse;
}
.post__list.active .post__list__content .content-info {
  @apply justify-start;
}
.post__list.active .post__list__content .content-ellipsis {
  @apply justify-start;
}

/* archives list */
#archives .arrow-left-ar {
  border-left: 20px solid transparent;
  border-bottom: 20px solid #f5f5f5;
}

/* html.dark #archives .arrow-left-ar {
  border-left: 20px solid transparent;
  border-bottom: 20px solid #b6cbfd;
} */

/* post article */
.markdown-body img {
  cursor: zoom-in;
}

/* 添加行号样式 */
pre.hljs {
  padding: 20px 2px 12px 40px;
  margin: 10px 0;
  border-radius: 5px;
  position: relative;
  font-size: 14px;
  line-height: 22px;
  overflow: hidden;
}
pre.hljs code {
  display: block;
  margin: 0 10px;
  overflow-x: auto;
}
pre.hljs code::-webkit-scrollbar {
  z-index: 11;
  width: 6px;
}
pre.hljs code::-webkit-scrollbar:horizontal {
  height: 6px;
}
pre.hljs code::-webkit-scrollbar-thumb {
  border-radius: 5px;
  width: 6px;
  background: #666;
}
pre.hljs code::-webkit-scrollbar-corner,
pre.hljs code::-webkit-scrollbar-track {
  background: #1e1e1e;
}
pre.hljs code::-webkit-scrollbar-track-piece {
  background: #1e1e1e;
  width: 6px;
}
pre.hljs .line-numbers-rows {
  position: absolute;
  pointer-events: none;
  top: 20px;
  bottom: 12px;
  left: 0;
  font-size: 100%;
  width: 40px;
  text-align: center;
  letter-spacing: -1px;
  border-right: 1px solid rgba(0, 0, 0, 0.66);
  user-select: none;
  counter-reset: linenumber;
}
pre.hljs .line-numbers-rows span {
  pointer-events: none;
  display: block;
  counter-increment: linenumber;
}
pre.hljs .line-numbers-rows span:before {
  content: counter(linenumber);
  color: #999;
  display: block;
  text-align: center;
}
pre.hljs b.name {
  position: absolute;
  top: 2px;
  right: 50px;
  z-index: 10;
  color: #999;
  pointer-events: none;
  user-select: none;
}
pre.hljs .copy-btn {
  position: absolute;
  top: 3px;
  right: 10px;
  z-index: 10;
  color: #999;
  cursor: pointer;
  border: 0;
  border-radius: 2px;
  user-select: none;
}
pre.hljs .copy-btn:hover {
  color: #7ee787;
}

/* login */
.login .box .form .btn-grad {
  width: 100%;
  background-image: linear-gradient(to right, #e8cbc0 0%, #636fa4 51%, #e8cbc0 100%);
  /* margin: 10px; */
  padding: 15px 45px;
  text-align: center;
  text-transform: uppercase;
  transition: 0.5s;
  background-size: 200% auto;
  color: white;
  box-shadow: 0 0 20px #eee;
  border-radius: 10px;
  display: block;
}

.login .box .form .btn-grad:hover {
  background-position: right center; /* change the direction of the change here */
  color: #fff;
  text-decoration: none;
}

/* base loading */
#loading {
  @apply bg-v-background dark:bg-v-background-dark;
  position: fixed;
  z-index: 999;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* background-color: #f9f9f9; */
  display: flex;
  align-items: center;
  justify-content: center;
}
.mg-loading {
  position: relative;
  width: 50px;
  perspective: 200px;
}

.mg-loading:after,
.mg-loading:before {
  position: absolute;
  width: 20px;
  height: 20px;
  content: '';
  -webkit-animation: jumping 0.5s infinite alternate;
  animation: jumping 0.5s infinite alternate;
  background: transparent;
}

.mg-loading:before {
  left: 0;
}

.mg-loading:after {
  right: 0;
  -webkit-animation-delay: 0.15s;
  animation-delay: 0.15s;
}

/* sakana@2.5.0 */
/* .sakana-widget-wrapper {
  pointer-events: none;
  position: relative;
  width: 100%;
  height: 100%;
}

.sakana-widget-app {
  pointer-events: none;
  position: relative;
}

.sakana-widget-canvas {
  z-index: 10;
  pointer-events: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.sakana-widget-main {
  z-index: 20;
  pointer-events: none;
  position: absolute;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

.sakana-widget-img {
  z-index: 40;
  cursor: move;
  pointer-events: auto;
  position: relative;
  background: no-repeat 50% 50%;
  background-size: cover;
}

.sakana-widget-ctrl {
  z-index: 30;
  cursor: pointer;
  pointer-events: auto;
  position: relative;
  height: 24px;
  width: 112px;
  display: flex;
  border-radius: 6px;
  background-color: #ddd;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.sakana-widget-ctrl-item {
  height: 24px;
  width: 28px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #555;
  background-color: rgba(0, 0, 0, 0);
}

.sakana-widget-ctrl-item:hover {
  color: #555;
  background-color: rgba(255, 255, 255, 0.25);
}

.sakana-widget-icon {
  height: 18px;
  width: 18px;
}

.sakana-widget-icon--rotate {
  animation: sakana-widget-spin 2s linear infinite;
}

@keyframes sakana-widget-spin {
  100% {
    transform: rotate(360deg);
  }
} */
